package routers

import "github.com/gin-gonic/gin"

// RegisterPermissionRoutes 注册权限管理路由
func (pr *ProtectedRoutes) RegisterPermissionRoutes(protected *gin.RouterGroup) {
	// 权限管理
	permissions := protected.Group("/permission")
	{
		permissions.GET("", pr.permissionController.GetPermissionList)
		permissions.GET("/:id", pr.permissionController.GetPermissionByID)
		permissions.POST("", pr.permissionController.CreatePermission)
		permissions.PUT("/:id", pr.permissionController.UpdatePermission)
		permissions.DELETE("/:id", pr.permissionController.DeletePermission)
	}
}
